{% if relation_parameters.relationFeature is not null or is_foreign_key_supported %}
  <ul class="nav nav-pills m-2 d-print-none">
    <li class="nav-item">
      <a href="{{ url('/table/structure', {'db': db, 'table': table}) }}" id="table_structure_id" class="nav-link{{ route == '/table/structure' ? ' active' }} disableAjax">
        {{ get_icon('b_props', t('Table structure'), true) }}
      </a>
    </li>

    <li class="nav-item">
      <a href="{{ url('/table/relation', {'db': db, 'table': table}) }}" id="table_relation_id" class="nav-link{{ route == '/table/relation' ? ' active' }} disableAjax">
        {{ get_icon('b_relations', t('Relation view'), true) }}
      </a>
    </li>
  </ul>
{% endif %}

{{ include('components/flash_messages.twig', with_context = false) }}

<div id="structure_content">
  {% block content %}{% endblock %}
</div>
